package edu.mobbuzz.web.components;

import org.apache.tapestry5.MarkupWriter;
import org.apache.tapestry5.annotations.Component;
import org.apache.tapestry5.corelib.components.Form;

import com.metamech.vorpal.Server;

import edu.mobbuzz.web.base.SecureBasePage;

public class StartServer extends SecureBasePage {
	@Component
	private Form startForm;
	
	void onSuccessFromStartForm() {
		Server startThread = new Server();
		startThread.setDaemon(true);
		startThread.start();
	}
	
	boolean beforeRender(MarkupWriter writer){
		 return true;
	} 
}
